﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Frame.Lib.Utilities;
using Frame.Lib.Enums;
using Frame.Lib.Web;


/// <summary>
///PageList 的摘要说明
/// </summary>
public class PageList:PageBase
{
    protected string strSelectIDs;
    public PageList()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
        strSelectIDs = "";
       
    }


    protected override void OnPreLoad(EventArgs e)
    {
        base.OnPreLoad(e);
        CssFileManager.AddCssFile(CssFile.Pager);
    }

    /// <summary>
    /// 当前页（翻页使用）
    /// </summary>
    protected int PageIndex
    {
        get
        {
            if (!string.IsNullOrEmpty(Request.QueryString["PageIndex"]))
            {
                return int.Parse(Request.QueryString["PageIndex"]);
            }
            else
            {
                return 1;
            }
        }
    }

    protected void InitLV(ListView lv,HtmlTableRow lvHeader)
    {
        LVUtil.Init(lv, lvHeader);
    }

    protected void InitSelectID(HiddenField hidSelectIDs)
    {
        strSelectIDs = hidSelectIDs.Value;
        hidSelectIDs.Value = "";
    }

    protected void InitGV(GridView gv)
    {
        GVUtil.InitGV(gv);
    }
}
